package com.java.basis.extend;

public class Employee extends People{
    private double salary;

    public Employee(String name, double salary) {
        super(name);
        this.salary = salary;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    @Override
    public String getDesc() {
        return "a employee, salary is " + salary;
    }

}
